import { defineStore } from 'pinia'
import {ref} from 'vue';

const useHeaderStore = defineStore('header',  ()=>{
    const headerState = ref<boolean>(true);
    const setHeaderState = (headerStateNew:boolean) => {
        headerState.value = headerStateNew;
    }
    const getHeaderState = ()=> {
        return headerState;
    }
    return{
        headerState,
        setHeaderState,
        getHeaderState
    }
});
export default useHeaderStore;

